import { tagItem } from './tagItem';

export class mangaType {
  constructor() {
    this.styles = [];
    this.areas = [];
    this.status = [];
    this.orders = [];
    this.prices = [];
  }

  private _styles: tagItem[];

  set styles(value) {
    if (value !== null && value.length > 0)
      value.forEach(i => i.tag = "styles");
    this._styles = value;
  }

  get styles() {
    return this._styles;
  }

  private _areas: tagItem[];

  set areas(value) {
    if (value !== null && value.length > 0)
      value.forEach(i => i.tag = "areas");
    this._areas = value;
  }

  get areas() {
    return this._areas;
  }

  private _status: tagItem[];

  set status(value) {
    if (value !== null && value.length > 0)
      value.forEach(i => i.tag = "status");
    this._status = value;
  }

  get status() {
    return this._status;
  }

  private _orders: tagItem[];

  set orders(value) {
    if (value !== null && value.length > 0)
      value.forEach(i => i.tag = "orders");
    this._orders = value;
  }

  get orders() {
    return this._orders;
  }

  private _prices: tagItem[];

  set prices(value) {
    if (value !== null && value.length > 0)
      value.forEach(i => i.tag = "prices");
    this._prices = value;
  }

  get prices() {
    return this._prices;
  }
}